# coding:utf-8
# filename: Face3.py
# author by: Face
# 列表降序：
list = [5,8,1,9,23,88,4]
a_list = sorted(list,reverse=True)
print(a_list)


# 方法二：
list = [5,8,1,9,23,88,4]
for i in range(len(list)-1):
    for j in range(len(list)-i-1):
        if list[j] < list[j + 1]:
            list[j],list[j + 1]= list[j + 1],list[j]
print(list)
